/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package assignment_cp3120.manager.deleteflights;

import assignment_cp3120.DAO.Factory.DAOFactory;
import assignment_cp3120.dataObjects.AllFlights;
import assignment_cp3120.dataObjects.Flight;

/**
 *
 * @author Administrator
 */
public class DeleteFlightsModel {
    public void deleteFlight(Flight flight) {
        DAOFactory.getDAOFactory().getFlightDAO().deleteFlight(flight.getFlight_id());
        AllFlights.remove(flight);
    }    
}
